from machine import Pin
import machine
if machine.wake_reason() == 2:
    print("wake")
if machine.wake_reason() == 0:
    print("poweron")
    from test1 import *
    main()
if machine.wake_reason() == 4:
    print("Deepsleep wake")